package org.zsl.ioc.app.spring.model;

public class Subject {

     private Integer subjectid;
     private String subjectName;

     private Teacher teacher;

    public Teacher getTeacher() {
        return teacher;
    }

    public Subject(){

     }

     public Subject(Teacher teacher){
         this.teacher = teacher;
     }

    public Integer getSubjectid() {
        return subjectid;
    }

    public void setSubjectid(Integer subjectid) {
        this.subjectid = subjectid;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }
}
